import React from 'react'
import { useRoutes } from 'react-router-dom'
import { routes } from './router/index'
import axios from 'axios'
import 'antd/dist/antd.css'
import 'normalize.css'

axios.get('/api/list').then((res) => {
  console.log(res.data.data, 'res')
  let data = res.data
  // data.forEach((item) => {})
})

const App = () => {
  const element = useRoutes(routes)
  return (
    <div className="app-container" style={{ width: '100%', height: '100%' }}>
      {element}
    </div>
  )
}

export default App
